package xx.iverson.file_manager.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * xx.iverson.file_manager.entity.FileInfo
 * 描述：
 * on 2025/9/18-上午9:04
 *
 * @author weijx
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class FileInfo {
    private Integer id;
    private String originalName;
    private String storageName;
    private String fileDescription;
    private String filePath;
    private Long fileSize;
    private String fileType;
    // 现在指向二级分类ID
    private Integer categoryId;
    private Integer downloadCount;
    private LocalDateTime uploadTime;
    private LocalDateTime updateTime;

    // 关联字段 // 二级分类名称
    private String categoryName;
    // 新增：一级分类ID
    private Integer level1Id;
    // 新增：一级分类名称
    private String level1Name;
}
